﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
    [Serializable]
    public partial class ProdPpMtrlHoldTable : TableInfo
    {
        public const string C_TableName = "PROD_PP_MTRL_HOLD";

        public const string C_ID = "ID";
        public const string C_PP_NO = "PP_NO";
        public const string C_MTRL_ID = "MTRL_ID";
        public const string C_MTRL_NAME = "MTRL_NAME";
        public const string C_MTRL_CODE = "MTRL_CODE";
        public const string C_QTY = "QTY";
        public const string C_UNIT = "UNIT";
        public const string C_REMARK = "REMARK";
        public const string C_STATUS = "STATUS";

        public ProdPpMtrlHoldTable()
        {
            _tableName = "PROD_PP_MTRL_HOLD";
        }

        protected static ProdPpMtrlHoldTable _current;
        public static ProdPpMtrlHoldTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }

        private static void Initial()
        {
            _current = new ProdPpMtrlHoldTable();

            _current.Add(C_ID, new ColumnInfo(C_ID, "Id", true, typeof(string)));
            _current.Add(C_PP_NO, new ColumnInfo(C_PP_NO, "PpNo", false, typeof(string)));
            _current.Add(C_MTRL_ID, new ColumnInfo(C_MTRL_ID, "MtrlId", false, typeof(string)));
            _current.Add(C_MTRL_NAME, new ColumnInfo(C_MTRL_NAME, "MtrlName", false, typeof(string)));
            _current.Add(C_MTRL_CODE, new ColumnInfo(C_MTRL_CODE, "MtrlCode", false, typeof(string)));
            _current.Add(C_QTY, new ColumnInfo(C_QTY, "Qty", false, typeof(decimal)));
            _current.Add(C_UNIT, new ColumnInfo(C_UNIT, "Unit", false, typeof(string)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK, "Remark", false, typeof(string)));
            _current.Add(C_STATUS, new ColumnInfo(C_STATUS, "Status", false, typeof(string)));

        }

        public ColumnInfo ID
        {
            get { return this[C_ID]; }
        }

        public ColumnInfo PP_NO
        {
            get { return this[C_PP_NO]; }
        }

        public ColumnInfo MTRL_ID
        {
            get { return this[C_MTRL_ID]; }
        }

        public ColumnInfo MTRL_NAME
        {
            get { return this[C_MTRL_NAME]; }
        }

        public ColumnInfo MTRL_CODE
        {
            get { return this[C_MTRL_CODE]; }
        }

        public ColumnInfo QTY
        {
            get { return this[C_QTY]; }
        }

        public ColumnInfo UNIT
        {
            get { return this[C_UNIT]; }
        }

        public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }

        public ColumnInfo STATUS
        {
            get { return this[C_STATUS]; }
        }



    }
}
